/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2023. All rights reserved.
 */

package model

/*
* AssetId 平台资源ID
* UserId 用户ID
* CloudUserId 云上用户ID
* ProductionType资源有两种：1.平台自销售资源，2.云上资源
* ResourceType 有两种:1.包周期资源(等一次性付费资源), 2.按需资源
* ResourceStatus 资源状态
* CloudResourceId 仅云上资源有效,表示云上资源ID,仅按需资源有效
* OrderId 资源关联的系统订单号,仅包周期资源有效
* CloudOrderId 仅云上资源有效, 资源关联的系统订单号(非云上订单号)
* LastUpdateTime 资源表
 */

type Asset struct {
	AssetId                string `orm:"column(asset_id);size(64);pk"`
	UserId                 string `orm:"column(user_id);size(64);"`
	CloudUserId            string `orm:"column(cloud_user_id);size(64);"`
	ProductionType         string `orm:"column(production_type);size(5)"`
	ResourceType           string `orm:"column(resource_type);size(5)"`
	ResourceStatus         string `orm:"column(resource_status);size(5)"`
	CloudResourceId        string `orm:"column(cloud_resource_id);size(64)"`
	AssociatedOrderId      string `orm:"column(associated_order_id);size(64)"`
	AssociatedCloudOrderId string `orm:"column(associated_cloud_order_id);size(64)"`
}
